$OpenBSD: patch-lib_googlecloudsdk_core_util_platforms_py,v 1.7 2017/04/04 21:45:55 ajacoutot Exp $
--- lib/googlecloudsdk/core/util/platforms.py.orig	Tue Jan  1 09:00:00 1980
+++ lib/googlecloudsdk/core/util/platforms.py	Tue Apr  4 23:36:02 2017
@@ -66,7 +66,8 @@ class OperatingSystem(object):
   LINUX = _OS('LINUX', 'Linux', 'linux')
   CYGWIN = _OS('CYGWIN', 'Cygwin', 'cygwin')
   MSYS = _OS('MSYS', 'Msys', 'msys')
-  _ALL = [WINDOWS, MACOSX, LINUX, CYGWIN, MSYS]
+  OPENBSD = _OS('OPENBSD', 'OpenBSD', 'openbsd')
+  _ALL = [WINDOWS, MACOSX, LINUX, CYGWIN, MSYS, OPENBSD]
 
   @staticmethod
   def AllValues():
@@ -119,6 +120,8 @@ class OperatingSystem(object):
       return OperatingSystem.MACOSX
     elif 'cygwin' in sys.platform:
       return OperatingSystem.CYGWIN
+    elif 'openbsd' in sys.platform:
+      return OperatingSystem.OPENBSD
     return None
 
   @staticmethod
@@ -261,6 +264,9 @@ class Platform(object):
                      if self.architecture == Architecture.ppc else 'Intel')
       return format_string.format(
           name=arch_string, version=platform.release())
+    elif self.operating_system == OperatingSystem.OPENBSD:
+      return '({name} {version})'.format(
+          name=self.operating_system.name, version=platform.release())
     else:
       return '()'
 
